﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage1.master" AutoEventWireup="true" CodeFile="KHTT_XemDanhSachYeuThich.aspx.cs" Inherits="ChucNang_KhachHangThanThiet_KHTT_XemDanhSachYeuThich" Title="Untitled Page" %>

<%@ Register src="../../UserControls/PageInterface.ascx" tagname="PageInterface" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <center>
    <h2>DANH SÁCH SẢN PHẨM YÊU THÍCH </h2> 
    Gửi thông tin sản phẩm qua mail:<asp:CheckBox ID="chkEmail" runat="server" 
         AutoPostBack="True" oncheckedchanged="chkEmail_CheckedChanged" />
    <asp:DataList ID="DataList_DanhSachSanPham" runat="server" 
        RepeatColumns="1" 
         RepeatDirection="Horizontal" CellPadding="5" CellSpacing="5" >
        <EditItemStyle BorderColor="Red" BorderStyle="Dotted" BorderWidth="1px" />
        <ItemStyle BorderColor="Red" BorderStyle="Dotted" BorderWidth="1px" />
        <ItemTemplate>
            <table width="300">            
                <tr>
                    <td rowspan="3">
                        <asp:HyperLink ID="HyperLink_PicLink" runat="server" NavigateUrl='<%# Eval("MaSP", "../NguoiDung/NguoiDung_XemChiTietSanPham.aspx?MaSP={0}") %>'>
                            <asp:Image ID="Image_hinhSP"  Height="80" Width="80" runat="server" ImageUrl='<%# Eval("HinhAnh") %>' />
                        </asp:HyperLink>
                    </td>
                 </tr>
                 <tr>
                    <td>
                        <asp:HyperLink ID="hyperlink_TenSP" runat="server"  NavigateUrl='<%# Eval("MaSP", "../NguoiDung/NguoiDung_XemChiTietSanPham.aspx?MaSP={0}") %>'><%# Eval("TenSP") %></asp:HyperLink>
                    </td>
                   <td>
                        <input type="checkbox" name="chkXoa" value='<%# Eval("MaSP") %>' />
                   </td>
                  </tr>
                  <tr>
                    <td><%# Eval("GiaCu") %> VNĐ
                    </td>
                </tr>
            </table>
            
        </ItemTemplate>
      </asp:DataList>
 
            <asp:Button ID="btnLoai" runat="server" Text="Loại Khỏi DS" 
         onclick="btnLoai_Click" /><br />
    <uc1:PageInterface ID="PageInterface1" 
            runat="server" />
     </center>
</asp:Content>

